USE [ERP_MOVIL]
GO

/****** Object:  Table [dbo].[RUT_FRECUENCIA_SEMANAL]    Script Date: 4/8/2015 8:52:10 PM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[RUT_FRECUENCIA_SEMANAL](
	[frs_id] [int] IDENTITY(1,1) NOT NULL,
	[frs_repetir] [int] NULL,
	[frs_lunes] [bit] NULL,
	[frs_martes] [bit] NULL,
	[frs_miercoles] [bit] NULL,
	[frs_jueves] [bit] NULL,
	[frs_viernes] [bit] NULL,
	[frs_sabado] [bit] NULL,
	[frs_domingo] [bit] NULL,
	[frd_inicio] [datetime] NULL,
	[frd_fin] [datetime] NULL,
	[frd_fin_rep] [int] NULL,
	[frd_sin_fin] [bit] NULL,
	[loc_id] [int] NULL,
	[frs_semana1] [bit] NULL,
	[frs_semana2] [bit] NULL,
	[frs_semana3] [bit] NULL,
	[frs_semana4] [bit] NULL,
	[frs_semana5] [bit] NULL,
	[frs_semana6] [bit] NULL,
 CONSTRAINT [PK_FRECUENCIA_SEMANAL] PRIMARY KEY CLUSTERED 
(
	[frs_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[RUT_FRECUENCIA_SEMANAL]  WITH CHECK ADD  CONSTRAINT [FK_FRECUENCIA_SEMANAL_LOCAL] FOREIGN KEY([loc_id])
REFERENCES [dbo].[RUT_LOCAL] ([loc_id])
GO

ALTER TABLE [dbo].[RUT_FRECUENCIA_SEMANAL] CHECK CONSTRAINT [FK_FRECUENCIA_SEMANAL_LOCAL]
GO


